<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns RPL query type</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.rollback.html">mysqli::rollback</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.savepoint.html">mysqli::savepoint</a></div>
 <div class="up"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqli.rpl-query-type" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqli::rpl_query_type</h1>
  <h1 class="refname">mysqli_rpl_query_type</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli::rpl_query_type</span> -- <span class="refname">mysqli_rpl_query_type</span> &mdash; <span class="dc-title">Returns RPL query type</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mysqli.rpl-query-type-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>mysqli::rpl_query_type</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>mysqli_rpl_query_type</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mysqli.html" class="type mysqli">mysqli</a></span> <code class="parameter">$link</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$query</code></span>
   )</div>


  <p class="para rdfs-comment">
   Returns <strong><code>MYSQLI_RPL_MASTER</code></strong>,
   <strong><code>MYSQLI_RPL_SLAVE</code></strong> or
   <strong><code>MYSQLI_RPL_ADMIN</code></strong> depending on a query type.
   <em>INSERT</em>, <em>UPDATE</em> and similar are
   <em class="emphasis">master</em> queries, <em>SELECT</em> is
   <em class="emphasis">slave</em>, and <em>FLUSH</em>,
   <em>REPAIR</em> and similar are <em class="emphasis">admin</em>.
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">自 PHP 5.3.0
起，已经<em class="emphasis">废弃</em>并<em class="emphasis">移除</em>此函数。</p></div>

 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqli.rollback.html">mysqli::rollback</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysqli.savepoint.html">mysqli::savepoint</a></div>
 <div class="up"><a href="class.mysqli.html">MySQLi</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
